/**
 * @file 工单操作-跟单（新）
 * @author sunlife
 * @date 2020-12-22 15:13:16
 */
layui.extend({
    oms_work_modify_route: 'work/modify/common/zmn.modify.route'
}).define(['oms_work_modify_route'], function (exports) {
    const route = layui.oms_work_modify_route;

    window.reloadDetail = function (workId, orderId) {
        window.location.href = route._calculateHostForOMS() + '/work/modify/detail.action?orderId='+ orderId +'&workId='+ workId +'&operateId=103&moduleId=510';
    };

    function initPage() {
        // 构建URL
        let url = route._calculateHostForTRACK() + '/track/add?orderId=' + orderId + '&workId=' + workId;
        $("#account-iframe").attr('src', url);
    }

    // 程序入口
    function init() {
        initPage();
    }

    // 初始化
    init();

    exports('oms_work_modify_newtrack');
});
